IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetLog4NetEntry]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[GetLog4NetEntry]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[GetLog4NetEntry]
	@id int
AS
BEGIN
	SET NOCOUNT ON;
	SELECT Id, Date, Thread, [Level], Logger, [Message], Exception 
	FROM Log4Net WHERE Id = @id
END

GO